<?php

namespace app\mobile\controller;

class Product extends base
{
    protected $beforeActionList = [
        'right' => ['only' => 'index,detailed'],
        'images' => ['only' => 'detailed'],
    ];


    /**
     * 更多图片
     */
    public function images()
    {
        $images = model('ProductImages')->where('pid', $this->request->param('id'))->column('image');
        $this->assign([
            'images' => $images,
        ]);
    }
}
